Parameters

The length specified with a string or text parameter is the length required. The external does not test for the correct size of the parameters. Please, declare the strings you use to the requested length.
Use of any of the Speech Pack commands inside the Debugger window is not recommended. Not passing parameters is also not recommended.
You should avoid returning to the Design Environment when speech is being produced.

Compiler declarations for variables used in the examples:
  C_INTEGER ($err;$speechref;$present;$count;$rate;$pitch;$i)
  C_INTEGER ($gender;$age;$language;$region;$script)
  C_LONGINT ($modul)
  C_STRING (4;$creator;$id)
  C_STRING (15;$mgrvers;$packvers)
  C_STRING (63;$voicename)
  C_STRING (255;$line;$comment;$message;$phoneme;$path)
  C_TEXT ($lines)

I used local variables in the examples but any other type is fine. In some cases like the $speechref you may want to use a interprocess variable instead.